package com.northwind.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data

@Table(name = "nwg_role")
public class Role {

    @Column(name = "role_id")
    private String roleId;

    @Column(name = "role_name")
    private String roleName;

    //关系属性   一个角色对应多个权限 权限集合
    List<Authority> authorityList;
}
